﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Resources.master" AutoEventWireup="false" CodeFile="ResourcesView.aspx.vb" Inherits="ResourcesView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<fieldset><legend><h2>Resources</h2></legend>
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
        DataKeyNames="ID" DataSourceID="DSResources" Height="50px" Width="125px">
        <Fields>
            <asp:BoundField DataField="RName" HeaderText="RName" SortExpression="RName" />
            <asp:ImageField DataImageUrlField="RPicture" HeaderText="Picture">
            </asp:ImageField>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
        </Fields>
    </asp:DetailsView>
    <asp:SqlDataSource ID="DSResources" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT [RName], [RPicture], [ID] FROM [tblresources]"></asp:SqlDataSource>
   </fieldset>
</asp:Content>

